package com.cfets.annualAssessment.service;

import com.cfets.annualAssessment.entity.Attribute;
import com.cfets.annualAssessment.entity.Resource;
import com.cfets.annualAssessment.entity.Role;
import com.cfets.annualAssessment.mapper.ResourceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.Arrays;
import java.util.List;

/**
 * Created by liusonglin on 2016/11/25.
 */
@Service
public class ResourceService {
    @Autowired
    private ResourceMapper resourceMapper;

    public List<Resource> findUrlIdByRole(String key) {
        return resourceMapper.selectByRole(key);
    }
}
